package io.renren.modules.hos.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.hos.entity.OrderEntity;
import io.renren.modules.hos.entity.ShopCarEntity;
import io.renren.modules.hos.vo.OrderVo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author ryf
 * @email 2559228480@qq.com
 * @date 2021-12-22 21:50:18
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询订单
     * @param hosUserId
     * @return
     */
    PageUtils queryOrder(Long hosUserId, Map<String, Object> params);

    /**
     * 创建订单
     * @return
     */
    String createOrder();

    /**
     * 根据订单号查询订单
     * @param orderNum
     * @return
     */
    OrderEntity selectByOrderNum(String orderNum);

    OrderVo getOrderVo(OrderEntity orderEntity);
}